package com.woniuxy.service;

import com.nimbusds.jose.JOSEException;
import com.woniuxy.entity.DTO.ChangePasswordDTO;
import com.woniuxy.entity.DTO.ReceivingOrderDTO;
import com.woniuxy.entity.DTO.SorterDTO;
import com.woniuxy.util.ResponseData;

import java.security.NoSuchAlgorithmException;
import java.util.List;

public interface SorterService {

    List<SorterDTO> querySorterList();

    Integer updateSorterById(Integer id,Integer warehouseId);

    List<SorterDTO> querySorterByWarehouseId(Integer warehouseId);

    List<SorterDTO> querySorterByName(String sorterName,Integer warehouseId);

    void sorterUnbind(Integer id);

    boolean register(SorterDTO sorterDTO) throws NoSuchAlgorithmException;

    ResponseData login(SorterDTO sorterDTO) throws JOSEException;

    boolean querySorterByAccount(String sorterAccount);

    SorterDTO queryProfileByAccount(String sorterName);

    boolean updatePasswordByName(ChangePasswordDTO changePasswordDTO);

    List<ReceivingOrderDTO> queryOrdersByWarehouseId(Integer warehouseId);

    boolean updateSorting(Integer sorterId,List<String> orderIds);

    List<ReceivingOrderDTO> queryOrdersBySorterId(Integer sorterId);

    boolean updateSortingStatus(String orderId);

    List<ReceivingOrderDTO> queryOrderGoods(String orderId);

    Integer getDailyPerformance(Integer sorterId);

    Integer getMonthlyPerformance(Integer sorterId);

    void imgLoad(Integer id,String imgSrc);

}
